﻿import mx.utils.Delegate;
class cn.eminia.ComboClassV1.Util {
	// [置顶]
	// 
	//var Lod1 = new LCalssV1.Lod(....); 
	//var Bar1 = new LCalssV1.Bar('-', {msk:msk2, page:page2});
	//LCalssV1.Util.bind(Lod1, Bar1);
	// 
	function Util() {
	}
	// 这个单独绑，一般不用
	static function connectNode(who, arr) {
		who.watch('ss', function (prop, oldVV, newVV) {
			for (var i = 0; i<arr.length; i++) {
				arr[i].updateSS(prop, oldVV, newVV);
			}
		});
		who.watch('tt', function (prop, oldVV, newVV) {
			for (var i = 0; i<arr.length; i++) {
				arr[i].updateTT(prop, oldVV, newVV);
			}
		});
		return;
	}
	// 一起绑 
	static function bind() {
		var a = arguments;
		for (var i = 0; i<a.length; i++) {
			//
			var who = a[i];
			var arr = (a.slice(0, i).concat(a.slice(i+1, a.length)));
			cn.eminia.ComboClassV1.Util.connectNode(who, arr);
		}
		return;
	}
}
